package com.dongzhu1428.express.module1.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.sql.Timestamp;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Builder;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2022-12-09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = false)
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    *  
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    *  发送方
    */
    @TableField("`sender`")
    private Integer sender;

    /**
    *  接受方
    */
    @TableField("`receiver`")
    private Integer receiver;

    /**
    *  信息类型 0：文字 1：图片
    */
    @TableField("`type`")
    private Integer type;

    /**
    *  文字内容
    */
    @TableField("`text`")
    private String text;

    /**
    *  图片地址
    */
    @TableField("imgSrc")
    private String imgsrc;

    /**
    *  是否已读
    */
    @TableField("`read`")
    private Boolean read;

    /**
     *  发送时间
     */
    @TableField("`sendTime`")
    private Timestamp sendTime;


}
